package com.job.shuang.HomeWork0711.ToStringAndEquals;

/**
 * @author Liushuang
 * @version 1.0
 * @since 2022-07-11 21:08:06
 */
public class Cup {
    private String name;
    private Double price; //Double:引用类型，可以接收null
    private Double capacity;
    private String color;

    @Override
    public String toString() {
        return "Cup{"+
                "name='"+name+'\''+
                ",price="+price+
                ",capacity="+capacity+
                ",color="+color+'\''+
                '}';
    }

    public Cup(String name, Double price, Double capacity, String color) {
        this.name = name;
        this.price = price;
        this.capacity = capacity;
        this.color = color;
    }
}
